// -----------------------------------------------------------------------------
// Generate By Furion Tools v2.2.6                            
// -----------------------------------------------------------------------------

using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.Linq;

namespace Purchasing.Core
{
    public partial class UfMaterialLibrary : IEntity<MasterDbContextLocator>, IEntityTypeBuilder<UfMaterialLibrary, MasterDbContextLocator>
    {
    
        public int Id { get; set; }
        public int? RequestId { get; set; }
        public string Wzbm { get; set; }
        public string Wzmc { get; set; }
        public string Ggxh { get; set; }
        public int? Dw { get; set; }
        public int? Wzpl { get; set; }
        public int? Wzsx { get; set; }
        public string RequestId1 { get; set; }
        public int? Formmodeid { get; set; }
        public int? Modedatacreater { get; set; }
        public int? Modedatacreatertype { get; set; }
        public string Modedatacreatedate { get; set; }
        public string Modedatacreatetime { get; set; }
        public string Modeuuid { get; set; }
        public int? Lrr { get; set; }
        public int? Lrdw { get; set; }
        public int? Lrbm { get; set; }
        public string Wzlb { get; set; }
    
        public void Configure(EntityTypeBuilder<UfMaterialLibrary> entityBuilder, DbContext dbContext, Type dbContextLocator)
        {
                entityBuilder.ToTable("uf_materialLibrary");

                entityBuilder.HasIndex(e => e.Formmodeid, "uf_formmodeid_1604545069531");

                entityBuilder.Property(e => e.Id).HasColumnName("id");

                entityBuilder.Property(e => e.Dw).HasColumnName("dw");

                entityBuilder.Property(e => e.Formmodeid).HasColumnName("formmodeid");

                entityBuilder.Property(e => e.Ggxh)
                    .HasMaxLength(50)
                    .IsUnicode(false)
                    .HasColumnName("ggxh");

                entityBuilder.Property(e => e.Lrbm).HasColumnName("lrbm");

                entityBuilder.Property(e => e.Lrdw).HasColumnName("lrdw");

                entityBuilder.Property(e => e.Lrr).HasColumnName("lrr");

                entityBuilder.Property(e => e.Modedatacreatedate)
                    .HasMaxLength(10)
                    .IsUnicode(false)
                    .HasColumnName("modedatacreatedate");

                entityBuilder.Property(e => e.Modedatacreater).HasColumnName("modedatacreater");

                entityBuilder.Property(e => e.Modedatacreatertype).HasColumnName("modedatacreatertype");

                entityBuilder.Property(e => e.Modedatacreatetime)
                    .HasMaxLength(8)
                    .IsUnicode(false)
                    .HasColumnName("modedatacreatetime");

                entityBuilder.Property(e => e.Modeuuid)
                    .HasMaxLength(100)
                    .IsUnicode(false)
                    .HasColumnName("MODEUUID");

                entityBuilder.Property(e => e.RequestId).HasColumnName("requestId");

                entityBuilder.Property(e => e.RequestId1)
                    .HasMaxLength(20)
                    .IsUnicode(false)
                    .HasColumnName("request_id");

                entityBuilder.Property(e => e.Wzbm)
                    .HasMaxLength(20)
                    .IsUnicode(false)
                    .HasColumnName("wzbm");

                entityBuilder.Property(e => e.Wzlb)
                    .HasMaxLength(100)
                    .IsUnicode(false)
                    .HasColumnName("wzlb");

                entityBuilder.Property(e => e.Wzmc)
                    .HasMaxLength(50)
                    .IsUnicode(false)
                    .HasColumnName("wzmc");

                entityBuilder.Property(e => e.Wzpl).HasColumnName("wzpl");

                entityBuilder.Property(e => e.Wzsx).HasColumnName("wzsx");
        }

    }
}
